package luoxuan.express.action;

import com.opensymphony.xwork2.ActionSupport;
import com.opensymphony.xwork2.ModelDriven;

import luoxuan.express.entity.Express;
import luoxuan.express.service.ExpressService;

public class ExpressAction extends ActionSupport implements ModelDriven<Express> {

	private Express express=new Express();

	@Override
	public Express getModel() {
		return express;
	}
	
	private ExpressService expressService;

	public void setExpressService(ExpressService expressService) {
		this.expressService = expressService;
	}
	
	public String submit(){
		expressService.save(express);
		return "submit";
	}
	
}
